home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 5624 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.5 KB  |  47 lines

  1. Path: metropolis.nl!usura!joskam
  2. From: joskam@usura.metropolis.nl (Jurjen Oskam)
  3. Message-ID: <314c6829@usura.metropolis.nl>
  4. Newsgroups: comp.sys.amiga.programmer
  5. Subject: GCC C++ questions
  6. Date: 17 Mar 96 13:29:45 CET
  7. MIME-Version: 1.0
  8. Content-Type: text/plain; charset=iso-8859-1
  9. Content-Transfer-Encoding: 8bit
  10. Organization: * Open your mind! *
  11. X-GateSoftware: AmiGate 1.6b (28.1.96)
  12. X-CDA-fodder: shit fuck damn bestiality microsoft
  13.  
  14. Hello there,
  15.  
  16. I've just installed the GNU C Compiler (68020 version), and now I have some
  17. questions.
  18.  
  19. I don't have any experience with C++ until very recently, but I do have
  20. experience in programming other languages. From Aminet I got the gcc270
  21. distribution, and used the installer-script from gcc270-readme.lha to install
  22. everything.
  23.  
  24. It works fine, but look at this C++ program:
  25.  
  26. #include <iostream.h>
  27.  
  28. int main()
  29. {
  30.    cout << "Hello!" << endl ;
  31. }
  32.  
  33. This compiles OK, but the executable is 69KB! A bit too large, IMHO. ;-) I
  34. understand that GCC uses ixemul.library, and that there is another library
  35. that's better for programs not ported from UN*X, namely libnix.library. So, how
  36. do I install libnix.library (the docs say "don't forget to link it")? I don't
  37. know how to "link" it.
  38.  
  39. Can anyone help? How can I use libnix instead of ixemul, and how do I get those
  40. executable sizes down?
  41.  
  42. -- 
  43. Jurjen Oskam  -=*Finger joskam@metropolis.nl for PGP public key *=-
  44. Key fingerprint =  E3 9F E7 5C 16 3B D2 B2  4F 86 BA 66 96 0C 44 F1
  45.  
  46. ... Do you ever get the feeling that the computer is pushing YOUR button?
  47.